/**
 *@ClassName DiaryTools
 *
 *@Author ykx
 *@Date  2024/6/17 14:26
 *@Version 1.0
 */
fun main(args: Array<String>) {
    println(diaryGenerater1("金銮殿"))
    println(diaryGenerater1("人民大会堂"))
    println(diaryGenerater1("天安门"))
    println(diaryGenerater1("都市牧场现在品牌"))
}

fun diaryGenerater1(placeName: String): String {
    return """ 今天天气晴朗，万里无云，我们去${placeName}游玩，首先映入眼帘的是，${placeName}${numToChinese(placeName.length)}个镏金大字"""
}

fun numToChinese(num: Int): String {
    return when (num) {
        1 -> "一"
        2 -> "二"
        3 -> "三"
        4 -> "四"
        5 -> "五"
        else -> num.toString()
    }
}